home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 748 / 748.xpi / content / browser.xul < prev    next >
Extensible Markup Language  |  2010-02-11  |  5KB  |  135 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE overlay SYSTEM "chrome://greasemonkey/locale/greasemonkey.dtd">
  4.  
  5. <!-- Note: Contains Firefox-specific overlay -->
  6.  
  7. <overlay id="greasemonkey-browser-overlay"
  8.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  9.  
  10.   <script type="application/x-javascript" src="chrome://greasemonkey/content/utils.js" />
  11.   <script type="application/x-javascript" src="chrome://greasemonkey/content/prefmanager.js" />
  12.   <script type="application/x-javascript" src="chrome://greasemonkey/content/convert2RegExp.js" />
  13.   <script type="application/x-javascript" src="chrome://greasemonkey/content/menucommander.js" />
  14.   <script type="application/x-javascript" src="chrome://greasemonkey/content/xmlhttprequester.js" />
  15.   <script type="application/x-javascript" src="chrome://greasemonkey/content/miscapis.js" />
  16.   <script type="application/x-javascript" src="chrome://greasemonkey/content/dochandler.js" />
  17.   <script type="application/x-javascript" src="chrome://greasemonkey/content/scriptdownloader.js" />
  18.   <script type="application/x-javascript" src="chrome://greasemonkey/content/browser.js" />
  19.   <script type="application/x-javascript" src="chrome://greasemonkey/content/accelimation.js" />
  20.  
  21.   <popup id="contentAreaContextMenu">
  22.     <menuitem id="view-userscript"
  23.       accesskey="&menu.show.accesskey;"
  24.       label="&menu.show;"
  25.       insertbefore="context-openlink"
  26.       oncommand="GM_BrowserUI.viewContextItemClicked(event);" />
  27.     <menuseparator id="install-userscript-sep"
  28.       insertbefore="context-openlink" />
  29.   </popup>
  30.  
  31.   <!-- Firefox -->
  32.   <menupopup id="menu_ToolsPopup">
  33.     <menu id="gm_general_menu"
  34.       insertbefore="javascriptConsole" />
  35.   </menupopup>
  36.  
  37.   <!-- SeaMonkey -->
  38.   <menupopup id="taskPopup">
  39.     <menu id="gm_general_menu"
  40.       insertbefore="downloadMgr" />
  41.   </menupopup>
  42.  
  43.   <!--
  44.   NOTE: Unlocalized accesskey & label in menu tags; possibly unaccessible
  45.   -->
  46.   <menu id="gm_general_menu" class="menu-iconic"
  47.     accesskey="G"
  48.     label="Greasemonkey"
  49.   >
  50.     <menupopup
  51.       onpopupshowing="GM_showGeneralPopup(event); event.stopPropagation();"
  52.     >
  53.       <menuitem id="gm-general-menu-enabled-item"
  54.         accesskey="&statusbar.enabled.accesskey;"
  55.         label="&statusbar.enabled;"
  56.         type="checkbox"
  57.         oncommand="GM_setEnabled(!GM_getEnabled());" />
  58.       <menuseparator />
  59.       <menuitem id="userscript-tools-install"
  60.         accesskey="&menu.install.accesskey;"
  61.         label="&menu.install;"
  62.         hidden="true"
  63.         oncommand="GM_BrowserUI.installMenuItemClicked(event);" />
  64.       <menuitem
  65.         accesskey="&menu.manage.accesskey;"
  66.         label="&menu.manage;"
  67.         oncommand="GM_BrowserUI.manageMenuItemClicked(event);" />
  68.       <menuitem id="userscript-tools-new"
  69.         accesskey="&menu.new.accesskey;"
  70.         label="&menu.new;"
  71.         oncommand="GM_BrowserUI.newUserScript();" />
  72.       <menu id="userscript-commands-sb2"
  73.         accesskey="&menu.commands.accesskey;"
  74.         label="&menu.commands;"
  75.         disabled="false"
  76.         onpopupshowing="event.stopPropagation();"
  77.       >
  78.         <menupopup />
  79.       </menu>
  80.     </menupopup>
  81.   </menu>
  82.  
  83.   <statusbar id="status-bar">
  84.     <!-- NOTE: Local to statusbar tag scope -->
  85.     <stringbundle id="gm-browser-bundle" src="chrome://greasemonkey/locale/gm-browser.properties" />
  86.  
  87.     <statusbarpanel id="gm-status"
  88.       insertafter="livemark-button"
  89.     >
  90.       <label id="gm-status-label"
  91.         collapsed="true"
  92.         crop="end"
  93.         style="width:0px; margin:0" />
  94.       <image id="gm-status-image"
  95.         width="16"
  96.         height="16"
  97.         mousethrough="never"
  98.         onclick="if (!event.button) GM_setEnabled(!GM_getEnabled());
  99.                     else if (event.button == 1) GM_BrowserUI.manageMenuItemClicked();"
  100.         context="gm-status-popup" />
  101.       <popup id="gm-status-popup"
  102.         position="before_end"
  103.         onpopupshowing="GM_showPopup(event); event.stopPropagation();"
  104.         onclick="GM_popupClicked(event); event.stopPropagation();"
  105.       >
  106.         <menuitem id="gm-status-no-scripts"
  107.           label="&statusbar.noscripts;"
  108.           style="color:grey" />
  109.         <menuseparator id="gm-status-no-scripts-sep" />
  110.         <menu id="userscript-commands-sb"
  111.           accesskey="&menu.commands.accesskey;"
  112.           label="&menu.commands;"
  113.           disabled="false"
  114.           onpopupshowing="event.stopPropagation();"
  115.         >
  116.           <menupopup />
  117.         </menu>
  118.         <menuseparator />
  119.         <menuitem accesskey="&menu.new.accesskey;"
  120.           label="&menu.new;"
  121.           oncommand="GM_BrowserUI.newUserScript();" />
  122.         <menuitem accesskey="&menu.manage.accesskey;"
  123.           label="&menu.manage;"
  124.           oncommand="GM_BrowserUI.manageMenuItemClicked(event);" />
  125.         <menuseparator />
  126.         <menuitem id="gm-status-enabled-item"
  127.           accesskey="&statusbar.enabled.accesskey;"
  128.           label="&statusbar.enabled;"
  129.           type="checkbox"
  130.           oncommand="GM_setEnabled(!GM_getEnabled());" />
  131.       </popup>
  132.     </statusbarpanel>
  133.   </statusbar>
  134.  
  135. </overlay>